package com.ai.aichat.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 缓存表
 * </p>
 *
 * @author baomidou
 * @since 2025-09-16
 */
@Data
@ApiModel(value = "Cache对象", description = "缓存表")
public class Cache implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 缓存键
     */
    @TableId("key")
    @ApiModelProperty("缓存键")
    private String key;

    /**
     * 缓存值
     */
    @ApiModelProperty("缓存值")
    private String value;

    /**
     * 过期时间
     */
    @ApiModelProperty("过期时间")
    private Integer expiration;
}
